<?php /* Smarty version 2.6.2, created on 2011-09-21 01:19:59
         compiled from regform.tpl */ ?>
<?php require_once(SMARTY_DIR . 'core' . DIRECTORY_SEPARATOR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'regform.tpl', 72, false),)), $this); ?>
 <?php echo '
<script>
function checkregform(){
	var form = document.regform;
	if(form.username.value == \'\') {
	alert(\'Enter user name\');
	form.username.focus();
	return false;
	}
	if(form.email.value == \'\') {
		alert(\'Enter Email\');
		form.email.focus();
		return false;
	}
	if(form.code.value == \'\') {
		alert(\'Enter security code\');
		form.code.focus();
		return false;
	}
	if(form.password.value == \'\') {
		alert(\'Enter password\');
		form.password.focus();
		return false;
	}
	if(form.password2.value == \'\') {
		alert(\'Enter password confirmation\');
		form.password2.focus();
		return false;
	}
	if(form.password.value != form.password2.value) {
		alert(\'Passwords do not match\');
		return false;
	}
	return true;
}
</script>
'; ?>

<div class="MainContent">
<div class="box1 Box1Style2"><span class="Box1Text">Register form</span></div>
<div class="box2">
<table width="95%" border="0" cellpadding="4" cellspacing="8" >
	<tr bgcolor="#e0e0e0">
		<td bgcolor="#ffffff" width="100%" style="border: 1px #660000 solid">
		<div class=mtxt style="padding: 5px;" align="left">
		<font color="#444444">After registration, you will go live many useful
		functions. "My Hyips" is one of them, with which you can bookmark
		projects and just watch over them. Website administrators will get a
		convenient opportunities for editing. Even more, all registered users
		are free from entering captcha number when they vote or comment on the
		<strong>investment</strong> project.</font></div>
		</td>
	</tr>
</table>

<?php if ($this->_tpl_vars['errors']): ?>
<ul>
	<?php if (isset($this->_sections['e'])) unset($this->_sections['e']);
$this->_sections['e']['name'] = 'e';
$this->_sections['e']['loop'] = is_array($_loop=$this->_tpl_vars['errors']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['e']['show'] = true;
$this->_sections['e']['max'] = $this->_sections['e']['loop'];
$this->_sections['e']['step'] = 1;
$this->_sections['e']['start'] = $this->_sections['e']['step'] > 0 ? 0 : $this->_sections['e']['loop']-1;
if ($this->_sections['e']['show']) {
    $this->_sections['e']['total'] = $this->_sections['e']['loop'];
    if ($this->_sections['e']['total'] == 0)
        $this->_sections['e']['show'] = false;
} else
    $this->_sections['e']['total'] = 0;
if ($this->_sections['e']['show']):

            for ($this->_sections['e']['index'] = $this->_sections['e']['start'], $this->_sections['e']['iteration'] = 1;
                 $this->_sections['e']['iteration'] <= $this->_sections['e']['total'];
                 $this->_sections['e']['index'] += $this->_sections['e']['step'], $this->_sections['e']['iteration']++):
$this->_sections['e']['rownum'] = $this->_sections['e']['iteration'];
$this->_sections['e']['index_prev'] = $this->_sections['e']['index'] - $this->_sections['e']['step'];
$this->_sections['e']['index_next'] = $this->_sections['e']['index'] + $this->_sections['e']['step'];
$this->_sections['e']['first']      = ($this->_sections['e']['iteration'] == 1);
$this->_sections['e']['last']       = ($this->_sections['e']['iteration'] == $this->_sections['e']['total']);
?>
	<li><span style="color: red"> <?php if ($this->_tpl_vars['errors'][$this->_sections['e']['index']] == 'name'): ?>User with such
	name already exists<?php endif; ?> <?php if ($this->_tpl_vars['errors'][$this->_sections['e']['index']] == 'email'): ?>Email already in
	use<?php endif; ?> <?php if ($this->_tpl_vars['errors'][$this->_sections['e']['index']] == 'captcha'): ?>Wrong security code<?php endif; ?> </span></li>
	<?php endfor; endif; ?>
</ul>
<br>
<?php endif; ?> <br>
<form method="post" name="regform" onsubmit="return checkregform()"><input
	type="hidden" name="a" value="register"> <input type="hidden"
	name="action" value="register">
<table cellspacing=1 cellpadding=2 border=0 width=100%>
	<tr>
		<th width="34%" >* User name:</th>
		<td>
			<input type="text" name="username" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['frm']['username'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
" class="inpts_add" size="30"></td>
	</tr>

	<tr>
		<th >* Email:</th>
		<td>
		<input type="text" name="email" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['frm']['email'])) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html')); ?>
" class="inpts_add" size="30"></td>
	</tr>

	<tr>
		<th>* Password:</th>
		<td>
			<input type="password" name="password" class="inpts_add" size="30"></td>
	</tr>

	<tr>
		<th>* Passord confirmation:</td>
		<td>
			<input type="password" name="password2" class="inpts_add" size="30"></td>
	</tr>

	<tr>
		<td>&nbsp;</td>
		<td><input type="submit" name="submit" value=" Register " class="sbmt"></td>
	</tr>
	<tr>
		<td>&nbsp;</td>
	</tr>
</table>
</form>
</div>
</div>